package com.heyun.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.heyun.bean.HeyunCustomer;
import com.heyun.bean.HeyunService;
import com.heyun.service.impl.HeyunCustomerImpl;

@Controller
@RequestMapping("/heyunCustomer")
public class HeyunCustomerController {
	@Autowired
private HeyunCustomerImpl heyunCustomerImpl;
  //初到本页面时为需要默认查询形成表格，命名为selectForShowTable（暂不考虑依条件查询），应当考虑分页了
	@ResponseBody
	@RequestMapping("/select")
	public List<HeyunCustomer> listHeyunCustomer(){
		System.out.println("testselectForShowTable"); 
		List<HeyunCustomer> heyunCustomerList=heyunCustomerImpl.listHeyunCustomer();
		return heyunCustomerList;
	}
}